@import "./iconfont.css";
@import "./config.scss";

a { color: #409EFF; }

// 去掉日期时间组件的清除按钮
.el-picker-panel__link-btn:nth-child(1)>span{
    display: none;
}

.tpl-mg-t {  margin-top: $sp;  }
.tpl-mg-b {  margin-bottom: $sp;  }
.tpl-mg {  margin: $sp 0;  }
.tpl-mg-clear {  margin: 0;  }
.tpl-pd-t {  padding-top: $sp;  }
.tpl-pd-b {  padding-bottom: $sp;  }
.tpl-pd {  padding: $sp 0;  }
.tpl-pd-clear {  padding: 0;  }

.tpl-title {
    font-size: 14px;
    margin: 0;
    font-weight: bolder;
    padding: $sp 0;
    border-bottom: 1px solid $border-color;
}

.tpl-p {
    display: inline-block;
    color: #5E6D82;
    line-height: 1.5;
    padding: 5px 14px;
}
.line{width: 90%;height: 1px;background-color: #f0f2f5;}

.tpl-word-break-normal {
    word-break: normal;
}

/*通用样式*/
.wh-full{ width: 100%;height: 100%;}
.width-full{ width: 100%;}
.ds_none{display: none;}
.flex{ display: flex;}
.flex1{ flex: 1;}
.fb50{ flex-basis: 50%;}
.fwb{ font-weight: bold; }
/*水平主轴 左到右*/
.flex-row{ flex-direction: row; }
/*垂直主轴 上到下*/
.flex-col{ flex-direction: column; }
/*超过宽度换行*/
.flex-wrap{ flex-wrap: wrap; }
/*水平居中*/
.flex-jc-center{ justify-content: center; }
/*垂直居中*/
.flex-ai-center{ align-items: center; }
/*水平垂直居中*/
.flex-center{ justify-content: center; align-items: center; }
.flex-jc-sa{justify-content: space-around;}
.flex-jc-sb{justify-content: space-between;}
.ib{ display: inline-block; }
.pa { position: absolute; }
.pr { position: relative; }
.fl { float: left; }
.fr { float: right; }
.lh30 { line-height: 30px; }
.ib { display: inline-block; }
.nowrap { white-space: nowrap; }
.tlc {text-align: center; }
.fs12 { font-size: 12px !important; }
.fs14 { font-size: 14px !important; }
.fs16 { font-size: 16px !important; }
.fs18 { font-size: 18px !important; }
.fs24 { font-size: 24px !important; }
.wh720 { width: 720px; }
.wh640 { width: 640px; }
.wh540 { width: 540px !important; }
.wh535 { width: 535px; }
.wh440 { width: 440px; }
.wh350 { width: 350px !important; }
.wh300 { width: 300px; }
.wh290 { width: 290px; }
.wh280 { width: 280px; }
.wh260 { width: 260px; }
.wh240 { width: 240px; }
.wh200 { width: 200px; }
.wh182 { width: 182px; }
.wh168 { width: 168px; }
.wh150 {width: 150px;}
.wh120 { width: 120px; }
.wh100 { width: 100px !important; }
.wh90 { width: 90px !important; }
.wh80 { width: 80px; }
.wh70 { width: 70px !important; }
.wh60 { width: 60px; }
.wh30 { width: 30px; }
.ht300 { height: 300px; }
.ht104 { height: 104px; }
.ht60 { height: 60px; }
.ht40 { height: 40px; }
.ht32 { height: 32px; }
.ht20 { height: 20px; }
.size40 { width: 40px; height: 40px; }
.size46 { height: 46px; width: 46px; }
.mt18 { margin-top: 18px; }
.mb18 { margin-bottom: 18px; }
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }
.mt50 { margin-top: 50px; }
.mt16 { margin-top: 16px !important; }
.mt5 { margin-top: 5px !important; }
.mt4 { margin-top: 4px; }
.mt7 { margin-top: 7px; }
.mt10 { margin-top: 10px; }
.mt14 { margin-top: 14px; }
.mt0 {margin-top: 0;}
.mt-10 {margin-top: -10px; }

.mt1c{ margin-top: 1%; }
.mt2c{ margin-top: 2%; }
.mt5c{ margin-top: 5%; }
.mt7c{ margin-top: 7%; }
.mb1c{ margin-bottom: 1%; }
.mb2c{ margin-bottom: 2%; }
.mb3c{ margin-bottom: 3%; }
.mb6c{ margin-bottom: 6%; }
.ml1c{ margin-left: 1%; }
.ml2c{ margin-left: 2%; }
.ml7c{ margin-left: 7%; }
.mr4c{margin-right: 4%;}

.ml5 { margin-left: 5px; }
.ml10 { margin-left: 10px !important; }
.ml15 { margin-left: 15px; }
.ml20 { margin-left: 20px; }
.ml30 { margin-left: 30px; }
.ml37 { margin-left: 37px; }
.ml45 { margin-left: 45px; }
.ml50 { margin-left: 50px; }
.ml-11 {margin-left: -11px; }
.ml-12 {margin-left: -12px; }
.ml-16 { margin-left: -16px;}
.ml-20 { margin-left: -20px !important;}
.ml-24 { margin-left: -24px;}
.mr3 {margin-right: 3px; }
.mr5 { margin-right: 5px !important; }
.mr10 { margin-right: 10px; }
.mr14 { margin-right: 14px !important; }
.mr20 { margin-right: 20px; }
.mr24 { margin-right: 24px; }
.mb0 { margin-bottom: 0 !important; }
.mb8 { margin-bottom: 8px;}
.mb13 { margin-bottom: 13px !important;}
.mb16 { margin-bottom: 16px !important;}
.mb10 { margin-bottom: 10px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb30 { margin-bottom: 30px !important; }
.mb40 { margin-bottom: 40px !important; }
.mb50 { margin-bottom: 50px !important; }
.br8{border-radius: 8px !important;}
.br10{border-radius: 10px !important;}
.pd5 { padding: 5px; }
.pd10 { padding: 10px !important; }
.pd20 { padding: 20px; }
.pdt0 { padding-top: 0 !important; }
.pdt5 { padding-top: 5px; }
.pdl0 {padding-left: 0;}
.pdl10 {padding-left: 10px;}
.pdl20 {padding-left: 20px;}
.pdl70 { padding-left: 70px; }
.pdl80 { padding-left: 80px; }
.pdl90 { padding-left: 90px; }
.pdl200 { padding-left: 200px; }
.pdr10 {padding-right: 10px;}
.pb0 { padding-bottom: 0; }
.pb5 { padding-bottom: 5px; }
.pb10 { padding-bottom: 10px; }
.pb20 { padding-bottom: 20px; }
.pb30 { padding-bottom: 30px; }
.pb50 { padding-bottom: 50px; }

.sd{box-shadow: 0 10px 20px 0 rgba(60,58,111,0.15);}


//复写element-ui样式
.el-table{
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.el-table--scrollable-x .el-table__body-wrapper{
    padding-right: 5px;
}
//表格表头边框
.el-card__header{
    background-color: #FFF;
}

.el-card{
    border-radius: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    &.pb0 .el-card__body{
        padding-bottom: 0;
    }
    .el-form-item.is-success .el-input__inner,
    .el-form-item.is-success .el-textarea__inner
    {
        border-color: #dcdfe6;
    }
    .el-form-item.is-success .el-input__inner:focus,
    .el-form-item.is-success .el-textarea__inner:focus
    {
        border-color: #409eff;
    }
    .el-form-item.is-success .el-input__inner:hover,
    .el-form-item.is-success .el-textarea__inner:hover
    {
        border-color: #bbb;
    }
    .el-card__body{
        padding:15px 20px;
    }
}
.el-pagination--small .el-pagination__editor.el-input .el-input__inner{
    height: 28px;
}
.el-dialog{
    .el-dialog__header{
        border-radius: 2px;
        background-color: $color-card-header;
        border-bottom: 1px solid $color-border;
    }
    .el-form-item.is-success .el-input__inner,
    .el-form-item.is-success .el-textarea__inner
    {
        border-color: #dcdfe6;
    }
    .el-form-item.is-success .el-input__inner:focus,
    .el-form-item.is-success .el-textarea__inner:focus
    {
        border-color: #409eff;
    }
    .el-form-item.is-success .el-input__inner:hover,
    .el-form-item.is-success .el-textarea__inner:hover
    {
        border-color: #bbb;
    }
}

.el-collapse{
    .el-collapse-item{
        margin-bottom: 10px;
        .el-collapse-item__header{
            background-color: $color-card-header;
            padding: 0 10px;
        }
        .el-collapse-item__content{
            padding: 10px 10px 0px 10px;
        }
        .el-collapse-item__wrap{
            border-bottom-width: 0px;
        }
        .el-collapse{
            border-bottom-width: 0px;
        }
    }
}

// 删除提示框中改变“删除”和“取消”按钮的位置
.el-message-box__btns {
    position: relative;
}
.confirmBtn {
    position: absolute;
    right: 80px;
    top: 5px;
}

.el-select-dropdown__item span{
    //font-size:12px;
}

.el-date-editor--datetimerange.el-input, .el-date-editor--datetimerange.el-input__inner{
    width:350px;
}
.el-table td, .el-table th{
    padding:5px;
}
.el-table .cell{
    padding-left: 0;
    padding-right:0;
}
.el-table .el-table__header-wrapper th{
    background-color: rgba(250, 250, 250, 1) !important;
}
.tab-view-pages{
    .el-tabs__content{
        display: none;
    }
    .el-tabs__nav{
        .is-active{
            background-color: $color-body-main;
            border: 0;
        }
    }
    .el-tabs__nav-prev, .el-tabs__nav-next{
        padding: 0 5px;
    }
}
.body-main{
    background-color: $color-body-main;
    padding: 20px 20px 0 20px;
    font-size:12px;
    .el-table td,.el-table th,
    .el-form .el-form-item label,
    .el-form input,
    span{
        font-size:12px;
    }
}
.el-select-dropdown__item span{
    font-size:12px;
}
.el-date-editor--datetimerange.el-input, .el-date-editor--datetimerange.el-input__inner{
    width:350px;
}
.flex-box{
    display: flex;
}
.flex-box>div{
    flex:1;
    flex-basis: 0%;
}
.login-wrap .el-input__inner{
    height: 50px;line-height: 50px;margin-top: 20px;border-radius: 8px;
}
.login-wrap .el-form-item{
    margin-bottom: 0;
}
.el-header{
    padding: 0;
}

.el-tree-node__content:hover,.el-tree-node__content:active,.el-tree-node__content:visited{
    background-color: #e6f1ff;
}

.el-loading-spinner{
    text-align: center;
}
.el-pager,.el-pagination .btn-next,.el-pagination .btn-prev,.el-pagination.is-background.el-pagination--small  .btn-prev, .el-pagination.is-background.el-pagination--small .btn-next{
    margin-top: 3px;
}
.ellipsis{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    //padding:8px 0;
    height: 35px;
    line-height: 35px;
}
.el-table th>.cell{
    text-align: center;
}
.el-table .cell{
    text-align: center;
}
/*
.el-popover{
    max-height: 400px!important;
    overflow: scroll!important;
}*/


// common css  ---> 避险项目  btn-#F7AB48  bgc-#F3F4F6
.el-tabs__item{color: #333;opacity: .5;font-size: 10px;}
.el-tabs__item:hover,.el-tabs__item.is-active{color: #333 !important;opacity: 1;font-size: 14px;}
.el-button--primary{background-color: #F7AB48 !important;border-color: #F7AB48 !important;}
.el-button--primary:hover,.el-button--primary:active{background: #E09027;background-color: #E09027 !important;border-color: #E09027;}
.el-button--default:hover{color: #F7AB48;border-color: #E09027;background-color: #FFFFFF;}

.el-table .el-table__header-wrapper th{background-color: #F5E6D2 !important;height: 48px !important;font-family: "MicrosoftYaHei" !important;font-weight: bold;line-height: 19px !important;}
.el-table .el-table__header-wrapper th .cell{color: #333 !important;font-size: 14px !important;}
.el-table .cell{line-height: 25px !important;}

.el-pagination button,.el-pagination button:disabled,.el-pagination .btn-prev, .el-pagination .btn-next{background-color: transparent;}
.el-pager li{background: transparent;}

.el-dialog .el-form-item.is-success .el-input__inner:focus, .el-dialog .el-form-item.is-success .el-textarea__inner:focus{border-color: #F7AB48 ;}
// .el-table thead>tr th{background-color: #F5E6D2 !important;height: 48px !important;}
// common css  ---> 避险项目end

